# -*- coding:utf-8 -*-

"""
众安
"""
from aw import *
from autotest import *

# 备注  02时响应规则  03时不响应规则

class Test_zhongan_01(TestCase):
    def setUp(self):
        print("Test_001 setUp")

    def test(self):
        Common.writeRule2file("Test_zhongan_15")
        Common.setRule("Test_zhongan_01")

        ruleStr = """众安网贷风险查询接口标识=02时，响应规则"""
        Common.showRuleVariable(ruleStr)


        # 5 调用进件脚本
        Common.execFile(r'D:\dev\接口代码\AssetAutoTest\fudai\FDCreditChain.py')

        # 6 检查数据库结果
        expectVaule = {"result_code": "00", "rule_result": "RD", "rule_code": "FDS_QZ07001"}
        Common.checkResult(expectVaule, times=5)

    def tearDown(self):
        print("Test_001 tearDown")
